﻿using Huirui.Cavan.Domain.MainBoundedContext.SearchModule;
using Huirui.Cavan.Domain.MainBoundedContext.SystemModule;
using Huirui.Cavan.Presentation.Seedwork;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;

namespace Huirui.Cavan.Presentation.ViewModel.SystemModule
{
    public class ReceiptCodeRuleViewModel : EntityModel<ReceiptCodeRule, ReceiptCodeRuleSearch>, IReceiptCodeRuleViewModel
    {
        public string IsDefault { get; set; }
        public List<SelectListItem> IsDefaultOptions { get; set; }
        public int Pattern { get; set; }
    }

    public class ReceiptCodeRuleJson
    {
        public int Id { get; set; }
        public string Name { get; set; }
        public int Type { get; set; }
        public string IsDefault { get; set; }
        public string Prefix { get; set; }
        public int SerialNumberNumber { get; set; }
        public int SerialNumberStart { get; set; }
        public string Example { get; set; }
        public int Pattern { get; set; }
        public string StrPattern { get; set; }
        public int YearNumber { get; set; }
    }

    public class ReceiptCodeRuleJsonViewModel : JsonViewModel<ReceiptCodeRuleJson>
    {
    }
}
